//
//  MLMessageTableViewController.swift
//  SinaWeibo
//
//  Created by 李亮亮 on 16/4/6.
//  Copyright © 2016年 Big Fish. All rights reserved.
//

import UIKit

class MLMessageTableViewController: MLVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
    }
    
    private func setupUI() {
        if !userLogin {
        //设置访客视图信息
        visitorView?.setVisitorInfo("登录后，别人评论你的微博，发给你的消息，都会在这里收到通知", imageName: "visitordiscover_image_message")
            return
        }
        navigationItem.rightBarButtonItem = UIBarButtonItem.init(title: "发现群", imageName: nil, target: self, action: #selector(MLMessageTableViewController.findGroup))
        
    }
    
    @objc private func findGroup() {
        let temp = MLTempViewController()
        
        navigationController?.pushViewController(temp, animated: true)
    }
    
}
